class CreateGenres < ActiveRecord::Migration
  def self.up
    create_table :genres do |t|
      t.column :name, :string
    end
    ["Book", "Music", "CE", "Kitchen", "DVD", "Video", "Software", "Video Games", "Toy", "Sports", "Health and Beauty", "Watch", "Baby Product", "Apparel"].each do |n|
      Genre.create :name => n
    end
  end

  def self.down
    drop_table :genres
  end
end
